package org.framework.app.web.struts;

import org.framework.app.exception.AppException;
import org.framework.app.exception.SysException;


/**
 * 增删改查Action抽象类 （规范增删改查界面Action常规方法的定义）
 * 
 * @author zdp
 * 
 */
public abstract class CrudAction extends Action  {
	private static final long serialVersionUID = 6866967386311411455L;

	public static final String DEFAULT = "default";

	public static final String ADD = "add";

	public static final String UPDATE = "update";

	public static final String QUERY = "query";

	public static final String REMOVE = "remove";
	
	public static final String UNABLE = "unable";

	public abstract String initAdd() throws AppException, SysException;

	public abstract String initUpdate() throws AppException, SysException;

	public abstract String initQuery() throws AppException, SysException;

	public abstract String query() throws AppException, SysException;

	public abstract String add() throws AppException, SysException;

	public abstract String update() throws AppException, SysException;

	public abstract String remove() throws AppException, SysException;
	
	public abstract String unable() throws AppException, SysException;

}
